const express = require('express');
const titleController = require('../controllers/titleController');

const router = express.Router();

// 获取所有标题
router.get('/gets', titleController.getTitles); // GET /titles

// 添加新标题
router.post('/add', titleController.addTitle); // POST /titles/add

// 更新标题
router.post('/updateTitles', titleController.updateTitles); // POST /titles/updateTitles

// 删除多个标题
router.post('/deleteTitles', titleController.deleteTitles); // POST /titles/deleteTitles

module.exports = router;